﻿using _10_04Prism直接调用模块.Views;
using Prism.DryIoc;
using Prism.Ioc;
using Prism.Modularity;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace _10_04Prism直接调用模块
{
	/// <summary>
	/// Interaction logic for App.xaml
	/// </summary>
	public partial class App : PrismApplication
	{
		protected override Window CreateShell()
		{
			return Container.Resolve<MainView>();
		}

		protected override void RegisterTypes(IContainerRegistry containerRegistry)
		{
		
		}

		/// <summary>
		/// 通过dll文件下的直接调用
		/// </summary>
		/// <returns></returns>
		protected override IModuleCatalog CreateModuleCatalog()
		{
			return new DirectoryModuleCatalog()
			{
				ModulePath = @"./Modules"
			};
		}

	}
}
